﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CastingWellEquipmentGUI.Model
{
    public class Permissions : ObservableObject
    {
        private int _PermissionsId;
        public int PermissionsId
        {
            get { return _PermissionsId; }
            set
            {
                _PermissionsId = value;
                RaisePropertyChanged(() => PermissionsId);
            }
        }
        private string _PermissionsName;
        public string PermissionsName
        {
            get { return _PermissionsName; }
            set
            {
                _PermissionsName = value;
                RaisePropertyChanged(() => PermissionsName);
            }
        }

        private int _FormId;
        public int FormId
        {
            get { return _FormId; }
            set
            {
                _FormId = value;
                RaisePropertyChanged(() => FormId);
            }
        }



        private Form _PForm;
        public Form PForm
        {
            get { return _PForm; }
            set
            {
                _PForm = value;
                RaisePropertyChanged(() => PForm);
            }
        }

        private int _ControlId;
        public int ControlId
        {
            get { return _ControlId; }
            set
            {
                _ControlId = value;
                RaisePropertyChanged(() => ControlId);
            }
        }

        private Control _PControl;
        public Control PControl
        {
            get { return _PControl; }
            set
            {
                _PControl = value;
                RaisePropertyChanged(() => PControl);
            }
        }
        /// <summary>
        /// true是显示，false是隐藏
        /// </summary>
        private bool _IsShow;
        /// <summary>
        /// true是显示，false是隐藏
        /// </summary>
        public bool IsShow 
        {
            get { return _IsShow; }
            set
            {
                _IsShow = value;
                RaisePropertyChanged(() => IsShow);
            }
        }

        /// <summary>
        /// true是启用，false是禁用
        /// </summary>
        private bool _IsEnable;
        public bool IsEnable
        {
            get { return _IsEnable; }
            set
            {
                _IsEnable = value;
                RaisePropertyChanged(() => IsEnable);
            }
        }
    }
}
